import { PartialType } from '@nestjs/mapped-types';
import { CreateQustionDto } from './create-qustion.dto';

export class UpdateQustionDto extends PartialType(CreateQustionDto) {
  isStar?: boolean;
  isDeleted?: boolean;
  ids?: number[];
}
export type QuestionComponent = {
  id: string; // 唯一标识符
  type: string;
  title: string;
  isHidden: boolean;
  isLocked: boolean;
  props: Record<string, any>;
};
export class UpdateSingleQuestionDto {
  isStar?: boolean;
  isDeleted?: boolean;
  title?: string;
  isPublished?: boolean;
  answerCount?: number;
  userId?: number;
  description?: string;
  js?: string;
  css?: string;
  components: QuestionComponent[];
}
